package com.spring.housing.feign;

import com.spring.housing.acceptType.PageParams;
import com.spring.housing.returnType.CommenResult;
import com.spring.housing.returnType.PageType;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;

@Component
public class FallbackService implements ComsumerOpenfeign {

    @Override
    public CommenResult getinfo(PageParams param) {
        return new CommenResult(500,"登录操作失败,Server服务器异常!",param.toString());
    }

    @Override
    public CommenResult<PageType<Map<String,Object>>> newsInfo(PageParams params) {
        return new CommenResult(500,"位置信息查询失败,Server服务器异常!",params.toString());
    }

    @Override
    public String getinfo() {
        return "测试返回错误!Server服务器异常";
    }

    @Override
    public CommenResult<PageType<Map<String, Object>>> ofckb(PageParams params) {
        return new CommenResult(500,"取件信息查询失败,Server服务器异常!",params.toString());
    }

    @Override
    public CommenResult acceptOder(PageParams params) {
        return new CommenResult(500,"Server服务器异常!",params.toString());
    }

}
